package cn.ceplc.nlu.admin.domain;


import cn.ceplc.nlu.base.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;


@EqualsAndHashCode(callSuper = false)
@Data
@Entity

public class User extends BaseEntity<Long> {


    private static final long serialVersionUID = 8615669429713094634L;

    private String username;

    private String password;

    private String salt;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "role_id")
    private Role role;
}
